<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>{% block title %}{% endblock %}Django Türkiye</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="shortcut icon" type="image/png" href="/media/images/favicon.ico" />

    <link rel="stylesheet" href="/media/css/style.css" />

    {% block extrahead %}{% endblock %}
</head>
<body{% block extrabody %}{% endblock %}>
    {% block header %}
        {% include "header.html" %}
    {% endblock %}
    <div class="page center">
        <div class="content">
            {% block content %}
            {% endblock %}
        </div>
        <div class="sidebar">
            {% block sidebartop %}
            {% endblock %}
            {% block sidebar %}
            <div class="block">
                {% if user %}
                <p>Merhaba {{ user.nickname }}! <a href="{{ sign_out }}">Çıkış</a></p>
                {% else %}
                <p>Merhaba Misafir! <a href="{{ sign_in }}">Giriş</a></p>
                {% endif %}
            </div>
            {% endblock %}
            {% block sidebarbottom %}
            {% endblock %}
        </div>
        {% include "footer.html" %}
    </div>
</body>
</html>
